Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-587

Suggestion: Change logger name of inner classes.

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 0.9.18
    • 0.9.15
    • logback-classic
    • None

    Description

      At the moment, the logger name of inner classes is OuterClass$InnerClass.
      Because of that, the logging level of OuterClass isn't inherited by InnerClass at the moment.

      If LoggerFactory changed the logger name to OuterClass.InnerClass instead, InnerClass would inherit the logging level of OuterClass which seems intuitively correct.

      I'd suggest to accept both $InnerClass and .InnerClass style in logback configurations for compatibility and usability reasons.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: